package com.lesson4.factory.pizzastore.pizza;

/**
 * @author 朝花不迟暮
 * @version 1.0
 * @date 2020/8/27 11:36
 */
public abstract class Pizza
{
    protected String name;

    public void setName(String name)
    {
        this.name = name;
    }

    public abstract void prepare();

    public void bake()
    {
        System.out.println(name + " baking;");
    }

    public void cut()
    {
        System.out.println(name + " cutting;");
    }

    public void box()
    {
        System.out.println(name + " boxing;");
    }
}
